var fw = require("./frameworkFunctions_server");

exports.onSessionCreate = function () {
	//Build here the initial DOM
	fw.document = fw.parser.parseFromString("<root><tweets_server refname='reftweets'><div id='empty'></div></tweets_server></root>");
	//fw.document = fw.parser.parseFromString("<root><tweets_server refname='reftweets'></tweets_server></root>");
};


exports.onSessionLoad = function () {
	
	//Register here event listeners
	fw.registerEventListener(fw.document, ".//tweets_server", "DOMNodeInserted", function(event) {
			//var tweets = fw.selectElements(fw.document, ".//tweets_server")[0];
			//fw.removeElements(tweets, "//div");
			//tweets.appendChild(event.relatedNode);
		});

};